package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 异常信息
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "异常信息")
@Data
@Accessors(chain = true)
@TableName(value = "exception_info")
public class ExceptionInfo extends PublicPo implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "")
    private Long id;

    /**
     * 分组id(common_tree表id)
     */
    @TableField(value = "group_id")
    @ApiModelProperty(value = "分组id(common_tree表id)")
    private Long groupId;

    /**
     * 设备id(device表id)
     */
    @TableField(value = "device_id")
    @ApiModelProperty(value = "设备id(device表id)")
    private Long deviceId;

    /**
     * 异常类型(exception_type_id)
     */
    @TableField(value = "exception_type")
    @ApiModelProperty(value = "异常类型(exception_type_id)")
    private Long exceptionType;

    /**
     * 任务id(mission表id)
     */
    @TableField(value = "mission_id")
    @ApiModelProperty(value = "任务id(mission表id)")
    private Integer missionId;

    /**
     * 指示灯颜色(0 黄色,1 红色)
     */
    @TableField(value = "lamp_color")
    @ApiModelProperty(value = "指示灯颜色(0 黄色,1 红色)")
    private Integer lampColor;

    /**
     * 异常原因(exception_reason)
     */
    @TableField(value = "exception_reason")
    @ApiModelProperty(value = "异常原因(exception_type_id)")
    private String exceptionReason;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    @ApiModelProperty(value = "结束时间", hidden = true)
    private Date endTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 更新人
     */
    @TableField(value = "update_user")
    @ApiModelProperty(value = "更新人", hidden = true)
    private Integer updateUser;

    private static final long serialVersionUID = 1L;
}